﻿using Sasc.PV.DAL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Sasc.PV.Web.Admin.Zhuding
{
    public partial class PenTuView : PVAdminPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                var model = new PvZDPenTu();
                model = model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
                DanHuaGuiAmountLabel.Text = model.DanHuaGuiAmount.ToString();
                DanHuaGuiPiCiLabel.Text = model.DanHuaGuiPiCi;
                DanHuaGuiPinPaiLabel.Text = model.DanHuaGuiPinPai;
                FuChaUserLabel.Text = model.FuChaUser;
                GanGuoBianHaoLabel.Text = model.GanGuoBianHao;
                GanGuoPiCiLabel.Text = model.GanGuoPiCi;
                GanGuoPinPaiLabel.Text = model.GanGuoPinPai;
                GanGuoXingHaoLabel.Text = model.GanGuoXingHao;
                GuiRongJiaoAmountLabel.Text = model.GuiRongJiaoAmount.ToString();
                GuiRongJiaoPiCiLabel.Text = model.GuiRongJiaoPiCi;
                GuiRongJiaoPinPaiLabel.Text = model.GuiRongJiaoPinPai;
                JianChaNoteLiteral.Text = WebUtils.ConvertTextToHTML(model.JianChaNote);
                PenTuDateTimeLabel.Text = model.PenTuDateTime.Format();
                PenTuMaxTempLabel.Text = model.PenTuMaxTemp.ToString();
                PenTuMinTempLabel.Text = model.PenTuMinTemp.ToString();
                WaterAmountLabel.Text = model.WaterAmount.ToString();
                CreatedByLabel.Text = model.CreatedBy;
                CreatedDateLabel.Text = model.CreatedDate.Format();
                LastUpdatedByLabel.Text = model.LastUpdatedBy;
                LastUpdatedDateLabel.Text = model.LastUpdatedDate.Format();
            }
        }
    }
}